package com.neusoft.elmboot.bean;

/**
 * 
 * @author chens
 *
 */
public class Food {
	private Integer foodId;
    private String foodName;
    private String foodExplain;
    private Double foodPrice;
    
    /**
     * 一个餐品对应一个商家，这是一对一的关系
     */
    private Business business;
    
	public Food() {
		super();
	}
	
	
	public Food(Integer foodId, String foodName, String foodExplain, Double foodPrice, Integer businessId) {
		super();
		this.foodId = foodId;
		this.foodName = foodName;
		this.foodExplain = foodExplain;
		this.foodPrice = foodPrice;
		this.business = new  Business(businessId);
	}


	public Integer getFoodId() {
		return foodId;
	}
	public void setFoodId(Integer foodId) {
		this.foodId = foodId;
	}
	public String getFoodName() {
		return foodName;
	}
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	public String getFoodExplain() {
		return foodExplain;
	}
	public void setFoodExplain(String foodExplain) {
		this.foodExplain = foodExplain;
	}
	public Double getFoodPrice() {
		return foodPrice;
	}
	public void setFoodPrice(Double foodPrice) {
		this.foodPrice = foodPrice;
	}

	public Business getBusiness() {
		return business;
	}

	public void setBusiness(Business business) {
		this.business = business;
	}


	@Override
	public String toString() {
		return "Food [foodId=" + foodId + ", foodName=" + foodName + ", foodExplain=" + foodExplain + ", foodPrice="
				+ foodPrice + ", business=" + business + "]";
	}


    
    
}
